package avicit.bdp.dcs.tools.enums;

import avicit.bdp.core.enums.BaseEnum;

/**
 * @金航数码科技有限责任公司
 * @作者：developer
 * @邮箱：developer@avic-digital.com
 * @创建时间： 2020-08-14 10:39
 * @类说明：
 * @修改记录：
 */
public enum DataSource implements BaseEnum {

    // 0:mysql,1:postgresql,2:hive,3:spark,4:clickhouse,
    // 5:oracle,6:sqlserver,7:db2,8:greenplum,9:hdfs,10:hbase,11:kafka,12:oos
    MYSQL(0, "mysql"),
    POSTGRESQL(1, "postgresql"),
    HIVE(2, "hive"),
    SPARK(3, "spark"),
    CLICKHOUSE(4, "clickhouse"),
    ORACLE(5, "oracle"),
    SQLSERVER(6, "sqlserver"),
    DB2(7, "db2"),
    GREENPLUM(8, "greenplum"),
    HDFS(9, "hdfs"),
    HBASE(10, "hbase"),
    KAFKA(11, "kafka"),
    OOS(12, "oos");

    private final int code;
    private final String descp;

    DataSource(int code, String descp) {
        this.code = code;
        this.descp = descp;
    }

    public int getCode() {
        return code;
    }

    public String getDescp() {
        return descp;
    }

}
